#ifndef __SCHED_RR__
#define __SCHED_RR__

#include <vector>
#include <queue>
#include "basesched.h"
#include <fstream>

class SchedRR : public SchedBase {
	public:
		SchedRR(std::vector<int> argn);
        ~SchedRR();
		virtual void load(int pid);
		virtual void unblock(int pid);
		virtual int tick(int cpu, const enum Motivo m);

	private:
		int next(int cpu);

		int cores;	/*Cantidad de cores*/
		std::vector<int> quantum;	/*Quantum del core i */
		std::vector<int> quantum_left;	/*Quantum restante del core i */
		std::queue <int>  tareas;	/*Cola de tareas (una sola, para permitir la migracion)*/


};

#endif
